import request from '../../utils/request';

export const sendReset = query => {
    return request({
        url: '/api/stand/training/doRest',
        method: 'get',
        // url: './json/addORupdatepatient.json',
        // method: 'get',
        params: query,
        timeout: 50000
    });
};
export const startTraining = query => {
    return request({
        url: '/api/stand/training/startTraining',
        method: 'post',
        // url: './json/addORupdatepatient.json',
        // method: 'get',
        params: query,
    });
};
export const play = query => {
    return request({
        url: '/api/stand/training/play',
        method: 'post',
        // url: './json/playlist.json',
        // method: 'get',
        params: query,
    });
};
//暂停
export const stopTrain = query => {
    return request({
        url: '/api/stand/training/pause',
        method: 'post',
        // url: './json/addORupdatepatient.json',
        // method: 'get',
        params: query,
    });
};
//继续
export const resume = query => {
    return request({
        url: '/api/stand/training/resume',
        method: 'post',
        // url: './json/addORupdatepatient.json',
        // method: 'get',
        params: query,
    });
};
//下一个
export const goNextAction = query => {
    return request({
        url: '/api/stand/training/goNextAction',
        method: 'post',
        // url: './json/addORupdatepatient.json',
        // method: 'get',
        params: query,
    });
};
//结束
export const stop = query => {
    return request({
        url: '/api/stand/training/stop',
        method: 'post',
        // url: './json/addORupdatepatient.json',
        // method: 'get',
        params: query,
    });
};
//幅度值 --
export const sendEleTrainReduce = query => {
    return request({
        url: '/api/stand/training/sendEleTrainReduce',
        method: 'post',
        // url: './json/addORupdatepatient.json',
        // method: 'get',
        params: query,
    });
};
//幅度值 ++
export const sendEleTrainAdd = query => {
    return request({
        url: '/api/stand/training/sendEleTrainAdd',
        method: 'post',
        // url: './json/addORupdatepatient.json',
        // method: 'get',
        params: query,
    });
};









